<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%
    if((String)session.getAttribute("name")!=null){
        response.sendRedirect("index.jsp");
    }
    String error= (String)request.getAttribute("error");
    String user="";
    if(error==null){
        error="";
    }else{
        user=request.getParameter("user");
        }
%>

<p>&nbsp;</p>
    <p align="center" class="style3">Đăng Nhập</p>
<p>&nbsp;</p>
    <p align="center" ><%= error%> </p>
    <form id="dangnhap" name="dangnhap" method="post" action="login">
      <div class="div1">
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <table width="356" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="144" height="25" align="right">Tên Đăng Nhập :</td>
<td width="202" align="left" valign="top"><label>
                    <input name="user" type="text" class="widthtext" id="user" value="<%=user %>" size="25"/>
            </label></td>
          </tr>
          <tr>
            <td height="26" align="right">Mật Khẩu :</td>
          <td align="left" valign="top"><label>
              <input name="pass" type="password" class="widthtext" id="pass" size="26" />
            </label></td>
          </tr>
          <tr>
            <td height="27" colspan="2" align="center"><label>
               <input type="submit" name="dangnhap2" id="dangnhap2" value="Đăng Nhập" />
               <a href="/quanlyphonghoc/forgetpass.jsp">               Lấy lại mật Khẩu               </a></label></td>
          </tr>
        </table>
      </div>
    </form>
<p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>